package com.fenxiang.tieba.urlHandl;

import java.net.URLStreamHandler;
import java.net.URLStreamHandlerFactory;

/**
 * Created by lixiang on 10/07/2017.
 */
public class MyURLStreamHandlerFactory implements URLStreamHandlerFactory
{

    public URLStreamHandler createURLStreamHandler(String protocol)
    {
        if (protocol.equals("http"))
        {
            return new MyURLHandler();
        }
        return null;
    }

}
